﻿@using NRemedy;

@model List<WS_Incident_Journal>
@{
    ViewBag.Title = "工作日志信息";
    
}
<h2 style="text-align: center; color: rgb(255,0,0);">
    工作日志信息</h2>
<div id="body">
    <table style="border: 1px solid green; border-collapse: separate; margin: auto;">
        @Html.ActionLink("新增", "JournalDetail", new { operate = "Add" })
        <tr>
            <th style="border: 1px solid green;">
                日志单号
            </th>
            <th style="border: 1px solid green;">
                主题
            </th>
            <th style="border: 1px solid green;">
                内容
            </th>
            <th style="border: 1px solid green;">
                类别
            </th>
            <th style="border: 1px solid green;">
                来源
            </th>
            <th style="border: 1px solid green;">
                修改人
            </th>
            <th style="border: 1px solid green;">
                修改时间
            </th>
            <th colspan="3" style="border: 1px solid green;">
                操作
            </th>
        </tr>
        @if (Model.Count > 0)
        {
            foreach (var item in Model)
            {
            <tr>
                <td style="border: 1px solid green;">
                    @item.RequestID
                </td>
                <td style="border: 1px solid green;">
                    @item.Subject
                </td>
                <td style="border: 1px solid green;">
                    @item.Body
                </td>
                <td style="border: 1px solid green;">
                    @item.Category
                </td>
                <td style="border: 1px solid green;">
                    @item.Source
                </td>
                <td style="border: 1px solid green;">
                    @item.LastModifyBy
                </td>
                <td style="border: 1px solid green;">
                    @item.LastModifyDate
                </td>
                <td style="border: 1px solid green;">
                    @Html.ActionLink("修改", "JournalDetail", new { operate = "Edit", JournalNumber = item.RequestID })                   
                </td>
                <td style="border: 1px solid green;">
                    @Html.ActionLink("删除", "Index", new { operate = "Delete", JournalNumber = item.RequestID }, new { onclick = string.Format("return confirm('确认删除记录{0}?');", item.Subject) })
                </td>
                <td style="border: 1px solid green;">
                    @Html.ActionLink("查看", "JournalDetail", new { operate = "View", JournalNumber = item.RequestID })
                    
                </td>
            </tr>
            }
            
        }
        else
        {
            <tr>
                <td colspan="10" style="color: Red; text-align: center; font-size: 14px; font-weight: bolder;">
                    对不起，没有符合条件的记录！
                </td>
            </tr>
            
        }
    </table>
</div>
